﻿using System;

namespace Socium.Domain.Assertions.Parameters {
	public static class Assert {
		public static void NotNull(object o, string param_name) {
			if (o == null) {
				if (string.IsNullOrEmpty(param_name)) {
					throw new ArgumentNullException();
				}

				throw new ArgumentNullException(param_name);
			}
		}

		public static void NotNull(object o) {
			NotNull(o, null);
		}
	}
}
